﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Media;


namespace CapturarObjetos.Cenas
{
    public class Cena_Intro
    {
        private Texture2D fundo;
        private GameWindow Window;
        public Song musica;
        

        public Cena_Intro(ContentManager Content, GameWindow Window)
        {
            this.Window = Window;
            fundo = Content.Load<Texture2D>("telaintro");
        }

        public void Update(GameTime gameTime, KeyboardState teclado_atual, KeyboardState teclado_anterior)
        {
            if (teclado_atual.IsKeyDown(Keys.Enter))
            {
                Game1.cenaAtual = Game1.Cenas.INSTRUCOES;
                //MediaPlayer.Play(musica_jogo);
                //clock.start();
            }

            if (teclado_atual.IsKeyDown(Keys.C))
            {
                Game1.cenaAtual = Game1.Cenas.CREDITOS;
            }

            if (teclado_atual.IsKeyDown(Keys.I))
            {
                Game1.cenaAtual = Game1.Cenas.INSTRUCOES;
            }
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(fundo, new Rectangle(0, 0, Window.ClientBounds.Width, Window.ClientBounds.Height), Color.White);
        }

    }
}
